package com.home.study.controller;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.home.study.model.User;

//@RestController
@Controller
public class UserController {

	@RequestMapping("/list")
	private List<User> list() {
		ArrayList<User> users = new ArrayList<User>();
		users.add(new User("name", 1));
		return users;
	}

	@RequestMapping(value = "/gotoJsp", method = RequestMethod.GET)
	private String goToJsp() {
		return "HelloWord";
	}
}
